.class Les/lk$a;
.super Ljava/lang/Object;
.source "KsAdProviderStyle2.java"

# interfaces
.implements Lcom/kwad/sdk/api/KsLoadManager$NativeAdListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/lk;->a(Landroid/app/Activity;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/ad/cn/AdType;

.field final synthetic b:Lcom/estrongs/android/pop/app/ad/cn/b;

.field final synthetic c:Landroid/view/ViewGroup;

.field final synthetic d:Les/lk;


# direct methods
.method constructor <init>(Les/lk;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Landroid/view/ViewGroup;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/lk$a;->d:Les/lk;

    iput-object p2, p0, Les/lk$a;->a:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iput-object p3, p0, Les/lk$a;->b:Lcom/estrongs/android/pop/app/ad/cn/b;

    iput-object p4, p0, Les/lk$a;->c:Landroid/view/ViewGroup;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(ILjava/lang/String;)V
    .locals 5

    .line 1
    iget-object v0, p0, Les/lk$a;->d:Les/lk;

    iget-object v1, p0, Les/lk$a;->a:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v2, p0, Les/lk$a;->b:Lcom/estrongs/android/pop/app/ad/cn/b;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "ks2-n-s "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, v1, v2, p1, p2}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    return-void
.end method

.method public onNativeAdLoad(Ljava/util/List;)V
    .locals 4
    .param p1    # Ljava/util/List;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/kwad/sdk/api/KsNativeAd;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 1
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 2
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/kwad/sdk/api/KsNativeAd;

    .line 3
    iget-object v0, p0, Les/lk$a;->d:Les/lk;

    iget-object v1, p0, Les/lk$a;->a:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v2, p0, Les/lk$a;->b:Lcom/estrongs/android/pop/app/ad/cn/b;

    iget-object v3, p0, Les/lk$a;->c:Landroid/view/ViewGroup;

    invoke-static {v0, p1, v1, v2, v3}, Les/lk;->a(Les/lk;Lcom/kwad/sdk/api/KsNativeAd;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Landroid/view/ViewGroup;)V

    return-void

    .line 4
    :cond_1
    :goto_0
    iget-object p1, p0, Les/lk$a;->d:Les/lk;

    iget-object v0, p0, Les/lk$a;->a:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v1, p0, Les/lk$a;->b:Lcom/estrongs/android/pop/app/ad/cn/b;

    const/4 v2, -0x1

    const-string v3, "ks2-n-s no ad"

    invoke-virtual {p1, v0, v1, v2, v3}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    return-void
.end method
